﻿using Abp.Domain.Entities.Auditing;
using Camc.Quality.Bom;
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.Materials
{
    public class MaterialsContent : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料图号
        /// </summary>
        public string MaterialNo { get; set; }
        /// <summary>
        /// 物料标识
        /// </summary>
        public string MaterialTypeCode { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 物料类别
        /// </summary>
        public Guid MaterialsNodeId { get; set; }
        /// <summary>
        /// 对应物料细分类别
        /// </summary>
        public Guid MaterialCategoryId { get; set; }
        /// <summary>
        /// 主单位
        /// </summary>
        public Guid UnitId { get; set; }
        ///// <summary>
        ///// 副单位
        ///// </summary>
        //public string Unit2 { get; set; }
        /// <summary>
        /// 是否使用
        /// </summary>
        public int IsUsed { get; set; } = 1;
        /// <summary>
        /// 是否关键件
        /// </summary>
        [CanBeNull]
        public int? IsKeyPart { get; set; }
        /// <summary>
        /// 是否标准件
        /// </summary>
        [CanBeNull]
        public int? IsStandard { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 物料属性
        /// </summary>
        public int MaterialProperty { get; set; }
        /// <summary>
        /// 发次
        /// </summary>
        [CanBeNull]
        public string SendTime { get; set; } = "1";
        /// <summary>
        /// 备用字段
        /// </summary>
        [CanBeNull]
        public string DrawingNo { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string Batch { get; set; }
        /// <summary>
        /// 型号id
        /// </summary>
        public Guid ModelId { get; set; }
        /// <summary>
        /// 发次id
        /// </summary>
        public Guid SendTimeId { get; set; }

        //  public ICollection<BomDesign>  BomDesigns { get; set; }

    }
}
